package com.bjx.system.service;

import com.bjx.api.system.domain.vo.DictDataVO;

import java.util.List;

/**
 * @desc: 字典数据业务接口
 * @author: liushuai
 * @date: 2022/8/16
 */
public interface IDictDataService {

    /**
     * 保存字典数据
     * @param vos
     * @param dictTypeCode
     * @Author: liushuai
     * @Date: 2022/9/5 21:19
     */
    void saveDictData(List<DictDataVO> vos,String dictTypeCode);
    /**
     * 根据字典类型编号查询字典数据
     * @param dictTypeCode
     * @return: com.bjx.common.core.domain.R<java.util.List<com.bjx.system.domain.vo.DictDataVO>>
     * @Author: liushuai
     * @Date: 2022/8/16
     */
    List<DictDataVO> listDictDataByDictTypeCode(String dictTypeCode);
    /**
     * 根据字典类型编号删除字典
     * @param dictTypeCode
     * @Author: liushuai
     * @Date: 2022/9/6 21:07
     */
    void deleteDictDataByDictTypeCode(String dictTypeCode);


    /**
     * 根据字典类型编号缓存加载业务字典数据
     * @param dictTypeCode
     * @return: java.util.List<com.bjx.api.system.domain.vo.DictDataVO>
     * @Author: liushuai
     * @Date: 2022/9/29 11:18
     */
    List<DictDataVO> listCacheDictDataByDictTypeCode(String dictTypeCode);
    /**
     * 根据字典类型编号清除缓存字典
     * @param dictTypeCode
     * @Author: liushuai
     * @Date: 2022/10/11
     */
    void clearCacheByDictTypeCode(String dictTypeCode);
}
